<%@ taglib prefix="s" uri="/struts-tags" %>

<div class="grid_16">
	<h2>Add Product</h2>
	<p class="error">
	<s:actionerror/>
	</p>
</div>

<form action="newProduct.llh" method="post" enctype="multipart/form-data">
	<div class="grid_5">
		<p>
			<label for="title">Product Name <small>Not null.</small> </label> <!-- <input
				type="text" name="name" /> -->
				<s:textfield name="name"></s:textfield>
		</p>
	</div>
	
	<div class="grid_5">
		<p>
			<label for="title">Product Price <small></small> </label>
				<s:textfield name="price"></s:textfield>
		</p>
	</div>
	
	<div class="grid_9">
		<p>
			<label for="title">Product Image</label> 
			<s:file name="image"></s:file>
		</p>
	</div>
	<div class="grid_9">
		<p>
			<label for="title">Category <small>Category of
					product.</small> </label>
			<s:select list="#{'1':'Mobile', '2':'Laptop'}" name="idCatalog"></s:select>
		</p>
	</div>

	<div class="grid_16">
		<p>
			<label>Description <small>Description for product.</small> </label>
			<textarea name="description"></textarea>
		</p>
	</div>

	<div class="grid_16">
		<p class="submit">
			<!-- <input type="submit" value="Add" /> <input type="reset"
				value="Clear" /> -->
				<s:submit value="Add"></s:submit>
				<s:reset value="Clear"></s:reset>
		</p>
	</div>
</form>